| Account | POL Object Reference |
Special note on Account methods: all methods that change the state of an Account flush the accounts data file (data/accounts.txt) to disk immediately.
| ban | unban | ||
| disable | enable | ||
| setname | setpassword |
| banned | enabled | name |
| account.ban() | |
| Function: | Bans the account. If any character owned by this account is online, it will be disconnected |
| account.unban() | |
| Function: | Unbans the account. |
| account.disable() | |
| Function: | Disables the account. |
| account.enable() | |
| Function: | Enables the account. |
| account.setname( newname : string ) | |
| Function: | Changes the account name. It is advisable to save world state after changing an account name. |
| account.setpassword( newpassword : string ) | |
| Function: | Changes the account password. Note there is no way to read an account password. |
| account.enabled | |
| Meaning: | True/false indicator of whether or not the account is enabled |
| account.banned | |
| Meaning: | True/false indicator of whether ot not the account is banned |
| account.name | |
| Meaning: | The account name |